"""
学生信息：
    姓名、性别、手机号
    __str__魔法方法
"""


class Student(object):
    def __init__(self, name, gender, phone):
        # 姓名、性别、手机号
        self.name = name
        self.gender = gender
        self.phone = phone

    def __str__(self):
        return f'{self.name}, {self.gender}, {self.phone}'

# 测试代码
if __name__ == '__main__':
    stu = Student('zhangsan', 'man', '119')
    print(stu)
